package com.eos.control.action.customer;

import com.eos.business.service.SysProductBusinessService;
import com.eos.control.action.base.AbstractBaseAction;
import com.eos.orm.mybatis.model.SysProduct;

public class EditProductTypeAction extends AbstractBaseAction {
	private static final long serialVersionUID = -6356711099510187389L;
	private Integer productId;
	private SysProduct sysProduct;
	
	public void setProductId(Integer productId) {
		this.productId = productId;
	}

	public SysProduct getSysProduct() {
		return sysProduct;
	}

	@Override
	public String execute() {
		try{
			SysProductBusinessService spbs = new SysProductBusinessService();
			sysProduct = spbs.getSysProductPrimaryKey(productId);
		}catch (Exception e) {
			e.printStackTrace();
		}
		return SUCCESS;
	}
}
